package org.java.srb.core.controller;


import org.java.srb.core.pojo.entity.UserInfo;
import org.java.srb.core.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户基本信息 前端控制器
 * </p>
 *
 * @author huxb
 * @since 2021-04-11
 */
@RestController
@RequestMapping("/userInfo")
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    @RequestMapping("/test")
    public String test() {
        userInfoService.register(new UserInfo());
        return "hello world";
    }
}

